﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TVXD23.Web.Models.ViewModel.EmployeesModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Danh sách 
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link href="../../Content/css/HRMCss.css" rel="stylesheet" type="text/css" />
    <h2>Danh sách nhân viên</h2>

    <table border="0" width="100%" cellpadding="0"  cellspacing="0">      
        <tr>
            <th width="25%">
               Ảnh 3x4
            </th>
            <th width="30%">
               Họ và tên
            </th>
           
             <th width="30%">
               Thuộc phòng
            </th> 
             <th width="15%">
                Chức Năng
            </th>    
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
           
            <td>
               <%-- <%: item.ShortImage %>--%>
                <a href="/HRM/DetailsEmpl/<%: item.employeeId %>">  <img src="/Content/images/anh3x4/<%: item.ShortImage %>" width="180" height="140" /></a>
            </td>
            <td>
              <a href="/HRM/DetailsEmpl/<%: item.employeeId %>">  <%: item.FullName %></a>
            </td>     
           
            <td>
               <a href="/HRM/DetailsDepart/<%: item.departmentId %>">    <%: item.NameDepartment %></a>
            </td>
             <td>              
               
                <%: Html.ActionLink("Xóa", "DeleteEmpl", new { id = item.employeeId })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Tạo mới", "CreateEmpl")%> ||
          <%: Html.ActionLink("Back to List", "Index")%>
    </p>

</asp:Content>

